
<template>
  <div>
    <div v-for="(item, index) in ary" :key="index" style="display: inline-block;">
      <input type="checkbox" v-model="a" :value="item">
      <span>{{item}}</span>
    </div>
    <ul>
      <li v-for="(item, index) in a" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      ary: ["喜剧","科幻", "军事",  "冒险", "科技", "动漫", "奇闻","娱乐"],
      a: []
    }
  }
};
</script>

<style>
</style>